"use strict";
var Geo = {
    version: '0.0.0.1',
    author: 'Claveau Benoit',
    SignalR: {},
    Geolocation: {},
    Map: {}
};

Geo.Exception = function (msg) {
    this.message = msg;
};

//http://phrogz.net/JS/classes/OOPinJS2.html
Function.prototype.inherit = function(parentClassOrObject) {
    if (parentClassOrObject.constructor == Function) {
        //Normal Inheritance 
        this.prototype = new parentClassOrObject;
        this.prototype.constructor = this;
        this.prototype.parent = parentClassOrObject.prototype;
    } else {
        //Pure Virtual Inheritance 
        this.prototype = parentClassOrObject;
        this.prototype.constructor = this;
        this.prototype.parent = parentClassOrObject;
    }
    return this;
};
